
import java.util.Scanner;

public class Two {

	public static void main(String[] args) {
		int n,begin,end;
		Scanner scan = new Scanner(System.in);
		while(scan.hasNextInt()){
			StringBuilder str=new StringBuilder();
			n=scan.nextInt();
			begin=scan.nextInt();
			end=scan.nextInt();
			for (int i = 0; i < n; i++) {
				str.append(i);
			}
			System.out.println(str.substring(begin, end));
		}
		scan.close();
	}
}